From 62254de83399428edb59df2272336e4fe7f148a1 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Tue, 31 Oct 2006 22:25:25 -0700 Subject: [PATCH] [IA64] fix domVTi boot with maxmem We found the following bug. http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=800 I change assigned page number by assign_domain_page() from d->max_pages to d->tot_pages in vmx_build_physmap_table() because domVTi don't support maxmem. Signed-off-by: Akio Takebe --- xen/arch/ia64/vmx/vmx_init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/ia64/vmx/vmx_init.c b/xen/arch/ia64/vmx/vmx_init.c index 9d8fbe8ec8..46634f0119 100644 --- a/xen/arch/ia64/vmx/vmx_init.c +++ b/xen/arch/ia64/vmx/vmx_init.c @@ -364,7 +364,10 @@ static const io_range_t io_ranges[] = { /* Reseve 1 page for shared I/O ,1 page for xenstore and 1 page for buffer I/O. */ #define VMX_SYS_PAGES (3 + (GFW_SIZE >> PAGE_SHIFT)) -#define VMX_CONFIG_PAGES(d) ((d)->max_pages - VMX_SYS_PAGES) +/* If we support maxmem for domVTi, we should change from tot_page to max_pages. + * #define VMX_CONFIG_PAGES(d) ((d)->max_pages - VMX_SYS_PAGES) + */ +#define VMX_CONFIG_PAGES(d) ((d)->tot_pages - VMX_SYS_PAGES) static void vmx_build_physmap_table(struct domain *d) { -- 2.30.2